﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RookieGrow.Domain.Model.SportsStore;

namespace RookieGrow.Data.SportsStore.Database
{
    public class DbProductRepository : IProductRepository
    {
        private SportsDbContext dbContext;

        public DbProductRepository()
        {
            this.dbContext = new SportsDbContext("SportsDb");
        }
        
        public List<Product> GetProducts()
        {
            List<Product> products = dbContext.Products.ToList();

            return products;
        }
    }
}
